<%@page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<HTML>
	<HEAD>
		<TITLE>添加用户组</TITLE>
		<LINK href="<%=request.getContextPath()%>/jsp/manage/css/style.css" type=text/css rel=stylesheet>
	</HEAD>
	<script type="text/javascript">
	function CheckForm(){
		var str;
		str=document.myform.groupName.value.replace(/\s+/g, '');
		if (str==''){
		   alert('组名称不能为空！');
		   document.myform.groupName.focus();
		   return false;
		}
	</script>
	<BODY topMargin="0" marginheight="0" marginwidth="0">

		<FORM name="myform" onsubmit="return CheckForm();" method="post" target="_self"
			action="<%=request.getContextPath()%>/quanxianManage.do?method=groupsave&id=${group.id}">
			<TABLE class="border" cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
				<TBODY>
					<TR class="topbg">
						<TD height=22 colSpan=2 align=middle><STRONG>添加用户组</STRONG><br></TD>
					</TR>
					<TR align=middle>
						<TD>
							<TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
								<TBODY>
									<TR class=tdbg>
										<TD align=right width=9%>
											&nbsp;
										</TD>
										<TD colspan="10">
											<FONT color=#ff0000><STRONG>注意<font
													color="#0000ff">*的内容必须填</font> </STRONG> </FONT>
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align=right width=120>
											<STRONG>组名称：</STRONG>
										</TD>
										<TD colSpan=2>
											<input id='groupName' maxlength=255 size=50 name="groupName" >
											<FONT color=#ff0000>*</FONT>
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align=right width=120>
											<STRONG>描述：</STRONG>
										</TD>
										<TD colSpan=2>
											<input id="descn" maxlength=255 size=50 name="descn">
										</TD>
									</TR>
									<TR class=tdbg>
										<TD align=right width=120>
											<STRONG>权限：</STRONG>
										</TD>
										<TD colSpan=2>
										<TABLE cellSpacing=1 cellPadding=2 width="100%" border=0>
										<TBODY>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_QUANXIAN" >权限管理
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_QUANXIAN_SHENHE" >权限管理审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_TYPE" >类型管理
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_TYPE_SHENHE" >类型管理审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_NEWS" >最新消息
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_NEWS_SHENHE" >最新消息审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_LIBNEWS" >馆内消息
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_LIBNEWS_SHENHE" >馆内消息审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_CUSTOM" >定制模块
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_CUSTOM_SHENHE" >定制模块审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_FAQ" >常见问题
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_FAQ_SHENHE" >常见问题审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_BOOKREVIEW" >新书简介
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_BOOKREVIEW_SHENHE" >新书简介审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_HOTLINK" >常用链接和相关链接
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_HOTLINK_SHENHE" >常用链接和相关链接审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_LIBADDR" >通讯录
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_LIBADDR_SHENHE" >通讯录审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_USERINFO" >个人资料
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_USERINFO_SHENHE" >个人资料审核权<br />
												</TD>
											</TR>
											<TR class=tdbg>
												<TD  width=150>
												<input type="checkbox" name="quanxian" value="ROLE_FEEDBACK" >留言板
												</TD>
												<TD colSpan=2>
												<input type="checkbox" name="quanxian" value="ROLE_FEEDBACK_SHENHE" >留言板审核权<br />
												</TD>
											</TR>
										</TBODY>
										</TABLE>	
										</TD>
									</TR>
								</TBODY>
							</TABLE>
						</TD>
					</TR>
					<tr align="center">
						<td colspan="2">
							<INPUT id="Save" style="CURSOR: hand" type="submit" value="添加" name="Save">
							<INPUT id="Cancel" style="CURSOR: hand" type="reset" value="取消" name="Cancel" 
								onclick="window.location.reload('<%=request.getContextPath()%>/quanxianManage.do?method=grouplist') " >
						</td>
					</tr>
				</TBODY>
			</TABLE>
			<BR>
		</FORM>
	</BODY>
</HTML>
